package com.example.service;

import com.example.entity.Member;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

/**
 * 会员服务接口
 */
public interface MemberService {
    
    /**
     * 会员登录
     */
    Member login(Member member, HttpServletRequest request, HashMap<String, Object> map);
    
    /**
     * 会员注册
     */
    void register(Member member, HashMap<String, Object> map);
    
    /**
     * 获取会员列表
     */
    PageInfo<Member> getMemberList(Integer pageNum, Integer pageSize, String key, String key1);
    
    /**
     * 添加或更新会员信息
     */
    void saveOrUpdate(Member member, HttpServletRequest request);
    
    /**
     * 更新会员状态
     */
    Member updateMemberStatus(Member member);
    
    /**
     * 修改密码
     */
    void updatePassword(Member member, String onlpassword, String confirmPasword);
    
    /**
     * 删除会员
     */
    void deleteMember(int id);
    
    /**
     * 批量删除会员
     */
    void batchDeleteMember(String vals);
} 